#ifndef CVSView_h__
#define CVSView_h__

#include "Header.h"
#if (CONFIG_PLATFORM==PLATFORM_WIN32_VS)
namespace GameTutor
{
	class CVSView
	{
	public:
		CVSView(__INT32 w, __INT32 h, bool fullscreen = false, const char* name = 0);
		virtual ~CVSView();
		void Update();
		static CVSView* s_pInstace;

		__INT32 GetWidth() {return m_iWidth;}
		__INT32 GetHeight() {return m_iHeight;}
		__INT32	isFullScreen() {return m_isFullScreen;}

		HGLRC	m_hGLRC;
		HWND	m_hwndcWindow;
		HDC		m_hGameWndc;
		
		static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
	protected:
		__INT32		m_iWidth;
		__INT32		m_iHeight;
		bool		m_isFullScreen;
		char*		m_strTitle;

		void		InitClientWindow();
		void		Destroy();
	};
}
#endif
#endif // CVSView_h__
